<div class="row-fluid">
    <div class="span6" style="margin-left: 10px;">
        <div class="box corner-all">
            <div class="box-header grd-white">
                <div class="header-control">
                    <a data-box="collapse"><i class="icofont-caret-up"></i></a>
                    <a data-box="close" data-hide="bounceOutRight">×</a>
                </div>
                <span>معلومات الطلب</span>
            </div>
            <div class="box-body" style="padding: 0px;">
                <table class="table table-striped responsive" style="margin-bottom: 0px;">
                    <?
                    $user_add = get_userdata_with_id($result->user_id, '*');
                    ?>
                    <tbody>
                        <tr>
                            <td><?= $this->lang->line('label_sms_order_send') ?></td>
                            <td><a href='<?= base_url() . ADMIN_FOLDER ?>/users/view/<?= $user_add['id'] ?>'><?= $user_add['username'] ?></a></td>
                        </tr>
                        <tr>
                            <td><?= $this->lang->line('label_sms_order_msg_count') ?></td>
                            <td> <?
                                echo $result->msg_num;
                                ?></td>
                        </tr>
                        <tr>
                            <td><?= $this->lang->line('label_sms_order_msg_cost') ?></td>
                            <td><?= $result->msg_cost ?></td>
                        </tr>
                        <tr>
                            <td><?= $this->lang->line('label_sms_order_msg1_cost') ?></td>
                            <td><?= $result->msg1_cost ?></td>
                        </tr>
                        <tr>
                            <td><?= $this->lang->line('label_sms_order_type') ?></td>
                            <td><? if ($result->confirm == 'YES') { ?>
                                    <span class="badge badge-success"><?= $result->confirm ?></span>
                                    <?
                                }
                                ?>
                                <? if ($result->confirm == 'NO') { ?>
                                    <span class="badge badge-important"><?= $result->confirm ?></span>
                                    <?
                                }
                                ?></td>
                        </tr>
                        <tr>
                            <td><?= $this->lang->line('label_created_date') ?></td>  
                            <td><?= timespan($result->create_date, time()) ?></td>
                        </tr>
                        <tr>
                            <td><?= $this->lang->line('label_sms_order_confirm_date') ?></td>  
                            <td><?= timespan($result->modify_date, time()) ?></td>
                        </tr> 

                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <?
    if ($s) {
        ?>
        <div class="span6" style="margin-left: 0px;">
            <div class="box corner-all">
                <div class="box-header grd-white">
                    <div class="header-control">
                        <a data-box="collapse"><i class="icofont-caret-up"></i></a>
                        <a data-box="close" data-hide="bounceOutRight">×</a>
                    </div>
                    <span>معلومات التحويل</span>
                </div>
                <div class="box-body"  style="padding: 0px;">
                    <table class="table table-striped responsive" style="margin-bottom: 0px;">
                        <tbody>
                            <tr>
                                <td><?= $this->lang->line('label_bill_from_bank') ?></td>
                                <td><?= $bank_transfers->from_bank ?></td>
                            </tr>
                            <tr>
                                <td><?= $this->lang->line('label_bill_to_bank') ?></td>
                                <td> <?= $bank_transfers->to_bank ?></td>
                            </tr>
                            <tr>
                                <td><?= $this->lang->line('label_bill_cashe') ?></td>  
                                <td><?= $bank_transfers->amount ?></td>
                            </tr>
                            <tr>
                                <td><?= $this->lang->line('label_accound_number') ?></td>
                                <td><?= $bank_transfers->account_number ?></td>
                            </tr>
                            <tr>
                                <td><?= $this->lang->line('label_bill_trans_type') ?></td>
                                <td><?= $bank_transfers->payment_type ?></td>
                            </tr>

                            <tr>
                                <td><?= $this->lang->line('label_bill_trans_date') ?></td>  
                                <td><?= timespan($bank_transfers->send_date, time()) ?></td>
                            </tr>


                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <?
    }
    ?>
</div>
